﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="AdvertiseList.ascx.cs"
    Inherits="Framework.Module.Adsvertising.Admin.AdvertiseList" %>
<table cellspacing="0" cellpadding="0" width="100%" border="0" align="center">
    <tr>
        <td colspan="2">
            <table cellspacing="0" cellpadding="3" width="100%" border="0">
                <tr>
                    <td colspan="2">
                        <asp:Label runat="server" ID="lblUse" meta:resourcekey="lblUseResource2"></asp:Label>
                        <asp:CheckBox ID="chkEnable" runat="server" Checked="True" meta:resourcekey="chkEnableResource2">
                        </asp:CheckBox></td>
                </tr>
                <tr align="center">
                    <td width="170">
                        <b>
                            <asp:Label runat="server" ID="lblPosition" meta:resourcekey="lblPositionResource2"></asp:Label></b></td>
                    <td>
                        <b>
                            <asp:Label runat="server" ID="lblZone" meta:resourcekey="lblZoneResource2"></asp:Label></b></td>
                </tr>
                <tr align="center">
                    <td>
                        <asp:ListBox ID="lstPositions" runat="server" Width="260px" Height="152px" meta:resourcekey="lstPositionsResource2">
                        </asp:ListBox></td>
                    <td>
                        <asp:ListBox ID="lstZones" runat="server" Width="420px" Height="152px" SelectionMode="Multiple"
                            meta:resourcekey="lstZonesResource2"></asp:ListBox></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="lstPositions"
                ErrorMessage="Phải nhập vị trí đăng quảng cáo" meta:resourcekey="RequiredFieldValidator1Resource2"></asp:RequiredFieldValidator><br>
            <asp:RequiredFieldValidator ID="Requiredfieldvalidator2" runat="server" ControlToValidate="lstZones"
                ErrorMessage="Phải nhập khu vực đăng quảng cáo" meta:resourcekey="Requiredfieldvalidator2Resource2"></asp:RequiredFieldValidator></td>
    </tr>
</table>
<table style="padding-bottom: 5px; padding-top: 5px" cellspacing="0" cellpadding="0"
    border="0">
    <tr>
        <td valign="top" colspan="2">
            <asp:Button ID="cmdSearch" runat="server" CssClass="Button70" Text="Tìm" OnClick="cmdSearch_Click"
                meta:resourcekey="cmdSearchResource1"></asp:Button>&nbsp;
            <asp:Button ID="cmdAddNew" runat="server" CssClass="Button70" Text="Thêm" OnClick="cmdAddNew_Click"
                meta:resourcekey="cmdAddNewResource1"></asp:Button>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblUpdateStatus" runat="server" meta:resourcekey="lblUpdateStatusResource1"></asp:Label></td>
    </tr>
</table>
<asp:DataGrid ID="dtgAdvertises" runat="server" Width="100%" AutoGenerateColumns="False"
    OnItemCommand="dtgAdvertises_ItemCommand" OnItemDataBound="dtgAdvertises_ItemDataBound"
    PageSize="2" CellPadding="5" meta:resourcekey="dtgAdvertisesResource2">
    <AlternatingItemStyle CssClass="DarkRow"></AlternatingItemStyle>
    <ItemStyle CssClass="LightRow"></ItemStyle>
    <HeaderStyle Font-Bold="True" CssClass="HeaderRow"></HeaderStyle>
    <Columns>
        <asp:BoundColumn Visible="False" DataField="Advertise_ID" HeaderText="ID">
            <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:TemplateColumn HeaderText="Ảnh">
            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
            <ItemTemplate>
                <asp:Literal ID="litUrl" runat="server" meta:resourcekey="litUrlResource2"></asp:Literal>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:BoundColumn HeaderText="Khu vực">
            <HeaderStyle HorizontalAlign="Center" Width="25%"></HeaderStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Advertise_Type" HeaderText="Loại">
            <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Advertise_Click" HeaderText="Click">
            <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:TemplateColumn HeaderText="Thứ tự">
            <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
            <HeaderTemplate>
                <asp:Button ID="Button1" runat="server" Width="58px" Text="Sắp xếp" CommandName="priority"
                    meta:resourcekey="Button1Resource2"></asp:Button>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:DropDownList ID="dropPriority" runat="server" Width="58px" CssClass="InputBox"
                    meta:resourcekey="dropPriorityResource2">
                </asp:DropDownList>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderStyle Width="1%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
            <ItemTemplate>
                <asp:Button ID="ImageButton1" runat="server" CssClass="FlatButton" CommandName="edit"
                    Text="Sửa" CausesValidation="False" meta:resourcekey="ImageButton1Resource2"></asp:Button>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderStyle HorizontalAlign="Center" Width="1%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
            <ItemTemplate>
                <asp:Button ID="cmdDel" runat="server" CssClass="FlatButton" CommandName="del" Text="X&#243;a"
                    CausesValidation="False" meta:resourcekey="cmdDelResource2"></asp:Button>
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>
</asp:DataGrid>
